{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "0f95a2cd",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "5\n",
      "周五一节课\n",
      "4-5ai\n"
     ]
    }
   ],
   "source": [
    "#kechengbiao\n",
    "import time \n",
    "import datetime \n",
    "#今天星期几 \n",
    "today=int(time.strftime(\"%w\")) \n",
    "print(today)\n",
    "if today==1:\n",
    "   print(\"周一没有课\");print(\"happy\");print(\"sleep\")\n",
    "elif today==2:\n",
    "   print(\"周二两节课\");print(\"8-9h5\");print(\"12-13大英\")\n",
    "elif today==3:\n",
    "   print(\"周三两节课\");print(\"早八睡大觉\");print(\"12-14创业实践摸鱼\")    \n",
    "elif today==4:\n",
    "   print(\"周四三节课\");print(\"8-9痛苦大英\");print(\"10-11羽毛球\")\n",
    "elif today==5:\n",
    "   print(\"周五一节课\");print(\"4-5ai\") \n",
    "else: \n",
    "   print(\"周六周日休息\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "affb21a9",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "kechengbiao\n",
      "5\n",
      "周五一节课\n",
      "4-5ai\n"
     ]
    }
   ],
   "source": [
    "print(\"kechengbiao\")\n",
    "import  datetime\n",
    "time = datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "\n",
    "print(week_time)\n",
    "if week_time==1:\n",
    "   print(\"周一没有课\");print(\"happy\");print(\"sleep\")\n",
    "elif week_time==2:\n",
    "   print(\"周二两节课\");print(\"8-9h5\");print(\"12-13大英\")\n",
    "elif week_time==3:\n",
    "   print(\"周三两节课\");print(\"早八睡大觉\");print(\"12-14创业实践摸鱼\")    \n",
    "elif week_time==4:\n",
    "   print(\"周四三节课\");print(\"8-9痛苦大英\");print(\"10-11羽毛球\")\n",
    "elif week_time==5:\n",
    "   print(\"周五一节课\");print(\"4-5ai\") \n",
    "else: \n",
    "   print(\"周六周日休息\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "dd29bc34",
   "metadata": {},
   "outputs": [],
   "source": [
    "#输入式\n",
    "from datetime import datetime\n",
    "import time\n",
    "now = datetime.now()\n",
    "week_time = int(input('输入星期：'))#输入阿拉伯数字\n",
    "#week _time\n",
    "print(week_time)\n",
    "if week_time==1:\n",
    "    print(\"周一没有课\");print(\"happy\");print(\"sleep\")\n",
    "elif week_time==2:\n",
    "    print(\"周二两节课\");print(\"8-9h5\");print(\"12-13大英\")\n",
    "elif week_time==3:\n",
    "    print(\"周三两节课\");print(\"早八睡大觉\");print(\"12-14创业实践摸鱼\")    \n",
    "elif week_time==4:\n",
    "    print(\"3-5python\");print(\"8-9痛苦大英\");print(\"10-11羽毛球\")\n",
    "elif week_time==5:\n",
    "    print(\"4-5ai\") \n",
    "else:\n",
    "    print(\"休息\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "07bae87e",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
